<template>
  <form class="form-inline col-sm-5" @submit.prevent="searchUser">
    <div class="form-group form-group-sm">
      <select class="form-control" v-model="searchType">
        <option value="1">手机号</option>
        <option value="2">用户ID</option>
        <option value="3">用户昵称</option>
      </select>
      <input type="text" class="form-control" placeholder="" v-model="searchTxt">
      <input type="submit" class="btn btn-sm btn-primary" value="搜索用户">
    </div>
  </form>
  <!-- <form class="form-inline col-sm-5" @submit.prevent="searchUser">
      <div class="form-group form-group-sm">
        <select class="form-control" v-model="searchType">
          <option value="1">手机号</option>
          <option value="2">用户ID</option>
          <option value="3">用户昵称</option>
        </select>
        <input type="text" class="form-control" v-model="searchTxt" placeholder="">
        <input type="submit" class="btn btn-sm btn-primary" value="搜索用户">
      </div>
    </form> -->
  <div class="col-sm-12 line"></div>
  <table class="table table-bordered table-hover">
    <caption><strong>2016 toplist投票</strong></caption>
    <thead>
        <tr>
          <th class="col-xs-2">用户ID</th>
          <th class="col-xs-2">用户名称</th>
          <th class="col-xs-2">总票数</th>
          <th class="col-xs-2">系统投票</th>
          <th class="col-xs-2">个人详情</th>
          <th class="col-xs-2"></th>
        </tr>
    </thead>
    <tbody>
      <tr v-for="list in voteList">
        <td>{{list.customerId}}</td>
        <td>{{list.customerName}}</td>
        <td>{{list.userVotes}}</td>
        <td>{{list.sysVotes}}</td>
        <td>{{'http://hdbeta.igoldenbeta.com/activity/vote/?uid=' + list.customerId}}</td>
        <td class="vote"><a class="btn btn-sm btn-primary" @click="modifyAc(list)">给该用户投票</a></td>
      </tr>
    </tbody>
  </table>
  <vue-pages :pages.sync="pages" :get-list="getList"></vue-pages>
  <vote-configure :show-configure.sync="showConfigure" :ac.sync="ac" title="给该用户投票"></vote-configure>
</template>
<style src="./vote.css" scoped></style>
<script src="./vote.js"></script>